package com.shoulder.imports;

public enum ImportsFilesEnums {

    AUTO_CONFIGURATION("org.springframework.boot.autoconfigure.AutoConfiguration", ImportsFiles.SPRING_IMPORTS_FILE_PATH);
    private String annotation;
    private String file;

    ImportsFilesEnums(String annotation, String file) {
        this.annotation = annotation;
        this.file = file;
    }

    public String getAnnotation() {
        return annotation;
    }

    public void setAnnotation(String annotation) {
        this.annotation = annotation;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public static ImportsFilesEnums match(String annotation) {
        ImportsFilesEnums[] values = ImportsFilesEnums.values();
        for (ImportsFilesEnums value : values) {
            if (value.getAnnotation().equals(annotation)) {
                return value;
            }
        }
        return null;
    }
}
